#!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time    : 2017/3/21 10:00
# @Author  : 柳晓飞
# @Site    : 
# @File    : card.py
# @Software: PyCharm

from enum import Enum, unique
@unique
class CardType(Enum):
    Tiao = 0 # Sun的value被设定为0
    Bing = 1
    Wan = 2
@unique
class OpType(Enum):#操作牌的类型，碰牌、杠牌、听牌、胡牌、发一张牌
    Peng = 0
    Gang = 1
    Ting = 2
    Hu = 3
    Chu = 4#玩家出牌
    Get = 5#给玩家发一张牌
    Guo = 6

#tiao 1(0000 0001 1) 2(0000 0010 2) 3 4 5 6 7 8 9
#bing 1(0001 0001 17) 2(0001 0010 18) 3 4 5 6 7 8 9
#wan  1(0010 0001 33) 2(0010 0001 34) 3 4 5 6 7 8 9

class Card:
    def __init__(self):
        self.cards= []

    def addCard(self,num):
        self.cards.append(num)
    def rmCard(self,num):
        self.cards.remove(num)

